package cn.tangwei.org.domain;

import cn.tangwei.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain{

    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    // 引用属性
    private Employee employee;
    private Long parent_id;
    // 引用属性
    private Department department;

    /**
     * 子部门
     */
    private List<Department> children = new ArrayList<>();

}
